package com.dd.ms.auth.service.impl;

import com.dd.ms.auth.pojo.req.UserRolesBatchAddReq;
import com.dd.ms.auth.repository.UserRolesRelRepository;
import com.dd.ms.auth.service.UserRolesRelService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/9 16:03
 * @Description 类功能作用说明
 */
@Service
@RequiredArgsConstructor
public class UserRolesRelServiceImpl implements UserRolesRelService {

    private final UserRolesRelRepository userRolesRelRepository;

    @Override
    public void batchAddUserRolesRel(UserRolesBatchAddReq req) {
        userRolesRelRepository.batchAddUserRoles(req.getUserId(), req.getRoleIds());
    }
}
